package com.stxx.stiot2.utils;

public class StrTool {
    public static String read(StringBuilder str,Integer len) {
        String value = str.substring(0,len);
        str.delete(0,len);
        return value;
    }

    public static void main(String[] args) {
        String a="1124555234";
        StringBuilder sb = new StringBuilder(a);
        System.out.println(read(sb,2));
        System.out.println(read(sb,2));
    }
}
